package com.aspose.cells.a.d;

import com.aspose.cells.Color;

public class zs {
   public Color a;
   public float b;
   public int c;
   public int d;
   public int e;
   public int f;
   public int g;
   private float[] n;
   public float h;
   public int i;
   public com.aspose.cells.b.a.b.zc j;
   public float k;
   public boolean l = true;
   public float[] m;

   public static com.aspose.cells.b.a.b.zm a(zs var0) {
      com.aspose.cells.b.a.b.zm var1 = null;
      if (var0.i == 0) {
         var1 = new com.aspose.cells.b.a.b.zm(var0.a);
      } else {
         var1 = new com.aspose.cells.b.a.b.zm(var0.j);
      }

      var1.b(var0.b);
      var1.c(var0.c);
      var1.d(var0.d);
      var1.a(var0.e);
      var1.a(var0.k);
      var1.b(var0.g);
      if (var0.g != 0) {
         var1.a(var0.a());
      }

      if (var0.m != null && var0.m.length != 0) {
         var1.b(var0.m);
      }

      return var1;
   }

   public static zs a(com.aspose.cells.b.a.b.zm var0) {
      return a(var0, 72.0F);
   }

   public static zs a(com.aspose.cells.b.a.b.zm var0, float var1) {
      zs var2 = null;
      if (var0 == null) {
         return null;
      } else {
         float var3 = var0.p() * 72.0F / var1;

         try {
            if (var0.o() == 0) {
               var2 = new zs(var0.c(), var3);
            } else {
               var2 = new zs(var0.b(), var3);
            }

            if (var0.b() != null) {
               var2.j = var0.b();
            }

            var2.c = var0.h();
            var2.d = var0.i();
            var2.e = var0.d();
            var2.k = var0.e();
            if (var0.g() != 0) {
               var2.a(var0.f());
            }

            var2.g = var0.g();
            var2.f = var0.j();
            var2.h = var0.k();
            var2.i = var0.o();
            if (var0.l() != null && var0.l().length != 0) {
               var2.m = var0.l();
            }
         } catch (Exception var5) {
            ;
         }

         return var2;
      }
   }

   public zs(com.aspose.cells.b.a.b.zc var1, float var2) {
      this.j = var1;
      this.b = var2;
      this.c = 0;
      this.d = 0;
      this.e = 0;
      this.f = 0;
      this.g = 0;
      this.a((float[])null);
      this.h = 1.0F;
      this.i = 0;
      this.k = 0.0F;
      this.m = null;
   }

   public zs(Color var1, float var2) {
      this.a = var1;
      this.b = var2;
      this.c = 0;
      this.d = 0;
      this.e = 0;
      this.f = 0;
      this.g = 0;
      this.a((float[])null);
      this.h = 1.0F;
      this.i = 0;
      this.j = null;
      this.k = 0.0F;
      this.m = null;
   }

   public zs(Color var1) {
      this.a = var1;
      this.b = 1.0F;
      this.c = 0;
      this.d = 0;
      this.e = 0;
      this.f = 0;
      this.g = 0;
      this.a((float[])null);
      this.h = 1.0F;
      this.i = 0;
      this.j = null;
      this.k = 0.0F;
      this.m = null;
   }

   public float[] a() {
      return this.n;
   }

   public void a(float[] var1) {
      if (var1 != null) {
         this.n = var1;
         this.g = 5;
      }

   }

   public void a(int var1, int var2, int var3) {
      this.c = var1;
      this.d = var2;
      this.e = var3;
   }
}
